package cn.jbolt.ai.resource.function.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.util.Date;

/**
 * AI函数参数表
 */
@TableName("ja_ai_function_param")
public class AiFunctionParam implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;


    @Schema(name = "aiFunctionId", description = "AI函数ID")
    @TableField("ai_function_id")
    private Long aiFunctionId;

    @Schema(name = "paramName", description = "参数名称")
    @TableField("param_name")
    private String paramName;

    @Schema(name = "type", description = "参数值类型")
    @TableField("type")
    private String type;

    @Schema(name = "briefInfo", description = "参数描述")
    @TableField("brief_info")
    private String briefInfo;

    @Schema(name = "defaultValue", description = "默认值")
    @TableField("default_value")
    private String defaultValue;

    @Schema(name = "isRequired", description = "是否必填")
    @TableField("is_required")
    private Boolean isRequired;


    @Schema(name = "sortRank", description = "参数顺序")
    @TableField("sort_rank")
    private Integer sortRank;


    @Schema(name = "createTime", description = "创建时间")
    @JsonFormat(locale = "zh", pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;


    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getSortRank() {
        return sortRank;
    }

    public void setSortRank(Integer sortRank) {
        this.sortRank = sortRank;
    }

    public Boolean getRequired() {
        return isRequired;
    }

    public void setRequired(Boolean required) {
        isRequired = required;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public String getBriefInfo() {
        return briefInfo;
    }

    public void setBriefInfo(String briefInfo) {
        this.briefInfo = briefInfo;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    public Long getAiFunctionId() {
        return aiFunctionId;
    }

    public void setAiFunctionId(Long aiFunctionId) {
        this.aiFunctionId = aiFunctionId;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
